<?php

namespace App\Models;


class Comment extends Model
{
    protected $table = 'comments';

    public function user(){
        return $this->belongsTo('App\Models\User','user_id','id');
    }
    public function post(){
        return $this->belongsTo('App\Models\Post','user_id','id');
    }

}
